﻿@model IEnumerable<blacksoft.Models.Perfil>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutSeguridad.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Perfiles</h3>
    </div>
    <div class="block_cont">
        <a href="/Perfils/Create" class="navbutton">
            <span class="icon_plus">
                Nuevo Perfil
            </span>
        </a>
        <hr />
        <table class="data-table">
            <thead>
                <tr>
                    <th>
                        @Html.DisplayNameFor(model => model.Nombre)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.Descripcion)
                    </th>
                    <th>ACCIONES</th>
                </tr>
            </thead>

            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Nombre)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Descripcion)
                    </td>
                    <td>
                        <div style="height: 3px;"></div>
                        <div class="actionbar">
                            <a href=@string.Concat("/Perfils/Details/", item.IDPerfil) class="action view"><span>Detalles</span></a>
                            <a href=@string.Concat("/Perfils/Edit/", item.IDPerfil) class="action edit"><span>Modificar</span></a>
                        </div>
                    </td>
                </tr>
            }

        </table>
    </div>
</div>